package P3_6;

import java.util.Scanner;

public class Tester {
public static void main(String[] args){
	Scanner in = new Scanner(System.in);
	
	//Counstruct DataSet:
	DataSet dat = new DataSet();
	
	//prompt for values:
	System.out.println("Test sequence -8, -4, -5, -9");
	System.out.print("Enter value : ");
	int inputval=in.nextInt();
	dat.addValue(inputval);
	System.out.print("Enter value : ");
	inputval=in.nextInt();
	dat.addValue(inputval);
	System.out.print("Enter value : ");
	inputval=in.nextInt();
	dat.addValue(inputval);
	System.out.print("Enter value : ");
	inputval=in.nextInt();
	dat.addValue(inputval);
	
	//Return
	System.out.println("Max : "+dat.getLargest());
	System.out.println("Expected -4");	
	System.out.println("Min : "+dat.getSmallest());
	System.out.println("Expected -9");
	
	
}
}
